#include <Zaf\Mwl\Mwl.h>


using namespace Zaf::Mwl;



class TestTabPage : public TabPage {

public:
	TestTabPage();

	void SetTab(Tab& tab);

protected:
	LRESULT WndProc(const WndMsg& msg);

private:
	Tab* m_tab;
};



class TestTabForm : public Form {

public:
	TestTabForm();

private:
	void OnCreated(CreatedEventArgs& args);
	void OnSelectedChanging(SelectedPageChangingArgs&);
	void OnSelectedChanged(SelectedPageChangedArgs&);

	LRESULT WndProc(const WndMsg& msg);

	static const int AlignmentButtonCount = 4;

	Tab m_tab;
	TestTabPage m_pages[3];
	Button m_buttons[3];

	Button m_alignmentButtons[AlignmentButtonCount];
};